package edu.jmu.action.sysmanage.role;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import edu.jmu.action.BaseAction;
import edu.jmu.action.privilege.Permission;
import edu.jmu.bean.PageView;
import edu.jmu.bean.privilege.Role;
import edu.jmu.service.sysmanage.RoleService;

@Controller 
@Scope(value="prototype")
public class ListRoleAction extends BaseAction<Role> {
	private static final long serialVersionUID = -4185802010632090799L;
	
	@Resource
	private RoleService roleService;
	
	
	@Permission(module="role",privilege="showRole",desc="展示角色列表")
	public String roleList(){
		this.pageView = new PageView<Role>(10, 20);
		pageView.setQueryResult(roleService.getScrollData());
		return SUCCESS;
	}

}
